#!/usr/local/python/bin/python
# coding=utf-8
__author__ = 'cz'

from model.ExecLog import ExecLog


class JsonExtUtils:
    @staticmethod
    def objToJson(obj):
        a_json=None
        if isinstance(obj,ExecLog) :
            a_json=obj.to_dict()
        else:
            a_json=obj.__dict__
        return (a_json)
